home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / polardrw / data.z / DrawOcxTestView.h < prev    next >
C/C++ Source or Header  |  1999-05-13  |  5KB  |  155 lines

  1. // DrawOcxTestView.h : interface of the CDrawOcxTestView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "polardraw.h"
  6. //}}AFX_INCLUDES
  7.  
  8. #if !defined(AFX_DRAWOCXTESTVIEW_H__53462E11_D25F_11D2_B9D2_008048FD54E6__INCLUDED_)
  9. #define AFX_DRAWOCXTESTVIEW_H__53462E11_D25F_11D2_B9D2_008048FD54E6__INCLUDED_
  10.  
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14.  
  15. class CDrawOcxTestView : public CFormView
  16. {
  17. protected: // create from serialization only
  18.     CDrawOcxTestView();
  19.     DECLARE_DYNCREATE(CDrawOcxTestView)
  20.  
  21. public:
  22.     //{{AFX_DATA(CDrawOcxTestView)
  23.     enum { IDD = IDD_DRAWOCXTEST_FORM };
  24.     CPOLARDraw    m_PolarDraw;
  25.     //}}AFX_DATA
  26.  
  27. // Attributes
  28. public:
  29.     CDrawOcxTestDoc* GetDocument();
  30.  
  31. // Operations
  32. public:
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CDrawOcxTestView)
  37.     public:
  38.     virtual void OnInitialUpdate();
  39.     protected:
  40.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. public:
  45.     virtual ~CDrawOcxTestView();
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. protected:
  52.     BOOL m_fAutoFit;
  53.     CString m_strFileName;
  54.     void UpdateTextFormatItems(CCmdUI* pCmdUI);
  55.  
  56. // Generated message map functions
  57. protected:
  58.     //{{AFX_MSG(CDrawOcxTestView)
  59.     afx_msg void OnEditCopy();
  60.     afx_msg void OnEditCut();
  61.     afx_msg void OnEditPaste();
  62.     afx_msg void OnEditRedo();
  63.     afx_msg void OnEditUndo();
  64.     afx_msg void OnErrorReadingFilePolardrawctrl1(LPCTSTR szErrorMsg, long lErrorCode, BOOL FAR* pbIgnore);
  65.     afx_msg void OnErrorWritingFilePolardrawctrl1(LPCTSTR szErrorMsg, long lErrorCode, BOOL FAR* pbIgnore);
  66.     afx_msg void OnSize(UINT nType, int cx, int cy);
  67.     afx_msg void OnSelect();
  68.     afx_msg void OnViewGuidelines();
  69.     afx_msg void OnUpdateViewGuidelines(CCmdUI* pCmdUI);
  70.     afx_msg void OnViewShowgrid();
  71.     afx_msg void OnUpdateViewShowgrid(CCmdUI* pCmdUI);
  72.     afx_msg void OnViewFittoheight();
  73.     afx_msg void OnViewFittopage();
  74.     afx_msg void OnViewFittosel();
  75.     afx_msg void OnViewFittowidth();
  76.     afx_msg void OnViewZoom();
  77.     afx_msg void OnArrangeBackward();
  78.     afx_msg void OnArrangeForward();
  79.     afx_msg void OnArrangeSnaptogrid();
  80.     afx_msg void OnArrangeSnaptoguidelines();
  81.     afx_msg void OnArrangeTobottom();
  82.     afx_msg void OnArrangeTofront();
  83.     afx_msg void OnUpdateArrangeSnaptogrid(CCmdUI* pCmdUI);
  84.     afx_msg void OnUpdateArrangeSnaptoguidelines(CCmdUI* pCmdUI);
  85.     afx_msg void OnViewRulers();
  86.     afx_msg void OnUpdateViewRulers(CCmdUI* pCmdUI);
  87.     afx_msg void OnViewScrollbars();
  88.     afx_msg void OnUpdateViewScrollbars(CCmdUI* pCmdUI);
  89.     afx_msg void OnViewSetup();
  90.     afx_msg void OnViewCenterpage();
  91.     afx_msg void OnRulerClickedPolardrawctrl1(short nWhichRuler, short nButton);
  92.     afx_msg void OnScrollBarClickedPolardrawctrl1(short nScrollBar, short nButton);
  93.     afx_msg void OnRotate();
  94.     afx_msg void OnEditPoints();
  95.     afx_msg void OnFormatFillTexture();
  96.     afx_msg void OnFormatFillPattern();
  97.     afx_msg void OnNewEllipse();
  98.     afx_msg void OnNewLine();
  99.     afx_msg void OnNewPolygonCurve();
  100.     afx_msg void OnNewPolygonFreeform();
  101.     afx_msg void OnNewPolygonScribble();
  102.     afx_msg void OnNewRectangle();
  103.     afx_msg void OnNewTriangle();
  104.     afx_msg void OnNewDiamond();
  105.     afx_msg void OnNewLeftarrow();
  106.     afx_msg void OnNewText();
  107.     afx_msg void OnUpdateFormatTextEdittext(CCmdUI* pCmdUI);
  108.     afx_msg void OnUpdateFormatTextSetfont(CCmdUI* pCmdUI);
  109.     afx_msg void OnFormatFillLens();
  110.     afx_msg void OnFormatFillShading();
  111.     afx_msg void OnFormatLineArrows();
  112.     afx_msg void OnFormatLineStyle();
  113.     afx_msg void OnFormatShadowStyle();
  114.     afx_msg void OnFilePageSetup();
  115.     afx_msg void OnFilePrint();
  116.     afx_msg void OnUpdateNewDiamond(CCmdUI* pCmdUI);
  117.     afx_msg void OnUpdateNewEllipse(CCmdUI* pCmdUI);
  118.     afx_msg void OnUpdateNewLeftarrow(CCmdUI* pCmdUI);
  119.     afx_msg void OnUpdateNewLine(CCmdUI* pCmdUI);
  120.     afx_msg void OnUpdateNewPolygonCurve(CCmdUI* pCmdUI);
  121.     afx_msg void OnUpdateNewPolygonFreeform(CCmdUI* pCmdUI);
  122.     afx_msg void OnUpdateNewPolygonScribble(CCmdUI* pCmdUI);
  123.     afx_msg void OnUpdateNewRectangle(CCmdUI* pCmdUI);
  124.     afx_msg void OnUpdateNewText(CCmdUI* pCmdUI);
  125.     afx_msg void OnUpdateNewTriangle(CCmdUI* pCmdUI);
  126.     afx_msg void OnFormatFillPicture();
  127.     afx_msg void OnMouseDownPolardrawctrl1(short Button, short Shift, long x, long y);
  128.     afx_msg void OnEditDelete();
  129.     afx_msg void OnEditSelectAll();
  130.     afx_msg void OnModifiedPolardrawctrl1();
  131.     afx_msg void OnViewAutofit();
  132.     afx_msg void OnUpdateViewAutofit(CCmdUI* pCmdUI);
  133.     afx_msg void OnFormatTextEdittext();
  134.     afx_msg void OnFormatTextSetfont();
  135.     DECLARE_EVENTSINK_MAP()
  136.     //}}AFX_MSG
  137.    afx_msg void OnUpdateFormatMenuItem(CCmdUI* pCmdUI);
  138.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  139.    afx_msg LONG OnSaveDocument( WPARAM wParam, LPARAM lParam);
  140.  
  141.     DECLARE_MESSAGE_MAP()
  142. };
  143.  
  144. #ifndef _DEBUG  // debug version in DrawOcxTestView.cpp
  145. inline CDrawOcxTestDoc* CDrawOcxTestView::GetDocument()
  146.    { return (CDrawOcxTestDoc*)m_pDocument; }
  147. #endif
  148.  
  149. /////////////////////////////////////////////////////////////////////////////
  150.  
  151. //{{AFX_INSERT_LOCATION}}
  152. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  153.  
  154. #endif // !defined(AFX_DRAWOCXTESTVIEW_H__53462E11_D25F_11D2_B9D2_008048FD54E6__INCLUDED_)
  155.